<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt"  prefix="fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <title>系统管理后台</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta charset="UTF-8" />
    <link href="${pageContext.request.contextPath}/static/admin/assets/css/vendor/bootstrap/bootstrap.min.css" rel="stylesheet">
    <link href="${pageContext.request.contextPath}/static/admin/css/font-awesome.css" rel="stylesheet">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/admin/assets/css/vendor/animate/animate.min.css">
    <link type="text/css" rel="stylesheet" media="all" href="${pageContext.request.contextPath}/static/admin/assets/js/vendor/mmenu/css/jquery.mmenu.all.css" />
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/admin/assets/js/vendor/videobackground/css/jquery.videobackground.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/admin/assets/css/vendor/bootstrap-checkbox.css">

    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/admin/assets/js/vendor/rickshaw/css/rickshaw.min.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/admin/assets/js/vendor/morris/css/morris.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/admin/assets/js/vendor/tabdrop/css/tabdrop.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/admin/assets/js/vendor/summernote/css/summernote.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/admin/assets/js/vendor/summernote/css/summernote-bs3.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/admin/assets/js/vendor/chosen/css/chosen.min.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/admin/assets/js/vendor/chosen/css/chosen-bootstrap.css">
    <%--<link rel="stylesheet" href="${pageContext.request.contextPath}/static/admin/assets/js/vendor/datepicker/css/bootstrap-datetimepicker.css">--%>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/admin/assets/js/vendor/colorpicker/css/bootstrap-colorpicker.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/admin/css/bootstrap-datetimepicker.min.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/admin/assets/js/vendor/colorpalette/bootstrap-colorpalette.css">

    <link href="${pageContext.request.contextPath}/static/admin/assets/css/minimal.css" rel="stylesheet">
    <link href="${pageContext.request.contextPath}/static/admin/css/sweetalert.css" rel="stylesheet">
    <link href="${pageContext.request.contextPath}/static/admin/css/company.css" rel="stylesheet">

    <%--<link rel="icon" type="image/ico" href="http://tattek.com/minimal/assets/images/favicon.ico" />--%>

</head>
<body class="bg-1">



<!-- Preloader -->
<div class="mask"><div id="loader"></div></div>
<!--/Preloader -->

<!-- Wrap all page content here -->
<div id="wrap">




    <!-- Make page fluid -->
    <div class="row">





        <!-- Fixed navbar -->
        <div class="navbar navbar-default navbar-fixed-top navbar-transparent-black mm-fixed-top" role="navigation" id="navbar">



            <!-- Branding -->
            <div class="navbar-header col-md-2">
                <a class="navbar-brand" href="index.html">
                    <strong>Shakes</strong>Beare
                </a>
                <div class="sidebar-collapse">
                    <a href="#">
                        <i class="fa fa-bars" style="line-height: 45px"></i>
                    </a>
                </div>
            </div>
            <!-- .nav-collapse -->
            <div class="navbar-collapse">
                <!-- Quick Actions -->
                <ul class="nav navbar-nav quick-actions">
                    <li class="dropdown divided">

                        <a class="dropdown-toggle button" data-toggle="dropdown" href="#">
                            <i class="fa fa-envelope"></i>
                            <span class="label label-transparent-black">1</span>
                        </a>

                        <ul class="dropdown-menu wider arrow nopadding messages">
                            <li><h1>You have <strong>1</strong> new message</h1></li>
                            <li>
                                <a class="cyan" href="#">
                                    <div class="profile-photo">
                                        <img src="${pageContext.request.contextPath}/static/admin/assets/images/ici-avatar.jpg" alt />
                                    </div>
                                    <div class="message-info">
                                        <span class="sender">Ing. Imrich Kamarel</span>
                                        <span class="time">12 mins</span>
                                        <div class="message-content">Duis aute irure dolor in reprehenderit in voluptate velit esse cillum</div>
                                    </div>
                                </a>
                            </li>

                            <li>
                                <a class="green" href="#">
                                    <div class="profile-photo">
                                        <img src="${pageContext.request.contextPath}/static/admin/assets/images/arnold-avatar.jpg" alt />
                                    </div>
                                    <div class="message-info">
                                        <span class="sender">Arnold Karlsberg</span>
                                        <span class="time">1 hour</span>
                                        <div class="message-content">Lorem ipsum dolor sit amet, consectetur adipisicing elit</div>
                                    </div>
                                </a>
                            </li>

                            <li>
                                <a href="#">
                                    <div class="profile-photo">
                                        <img src="${pageContext.request.contextPath}/static/admin/assets/images/face.jpeg" alt />
                                    </div>
                                    <div class="message-info">
                                        <span class="sender">John Douey</span>
                                        <span class="time">3 hours</span>
                                        <div class="message-content">Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia</div>
                                    </div>
                                </a>
                            </li>

                            <li>
                                <a class="red" href="#">
                                    <div class="profile-photo">
                                        <img src="${pageContext.request.contextPath}/static/admin/assets/images/peter-avatar.jpg" alt />
                                    </div>
                                    <div class="message-info">
                                        <span class="sender">Peter Kay</span>
                                        <span class="time">5 hours</span>
                                        <div class="message-content">Ut enim ad minim veniam, quis nostrud exercitation</div>
                                    </div>
                                </a>
                            </li>

                            <li>
                                <a class="orange" href="#">
                                    <div class="profile-photo">
                                        <img src="${pageContext.request.contextPath}/static/admin/assets/images/george-avatar.jpg" alt />
                                    </div>
                                    <div class="message-info">
                                        <span class="sender">George McCain</span>
                                        <span class="time">6 hours</span>
                                        <div class="message-content">Lorem ipsum dolor sit amet, consectetur adipisicing elit</div>
                                    </div>
                                </a>
                            </li>


                            <li class="topborder"><a href="#">Check all messages <i class="fa fa-angle-right"></i></a></li>
                        </ul>

                    </li>
                    <li class="dropdown divided user" id="current-user">
                        <div class="profile-photo">
                            <img src="${pageContext.request.contextPath}/static/admin/assets/images/face.jpeg" alt />
                        </div>
                        <a class="dropdown-toggle options" data-toggle="dropdown" href="#">
                            管理员 <i class="fa fa-caret-down"></i>
                        </a>

                        <ul class="dropdown-menu arrow settings">

                            <li>

                                <h3>Backgrounds:</h3>
                                <ul id="color-schemes">
                                    <li><a href="#" class="bg-1"></a></li>
                                    <li><a href="#" class="bg-2"></a></li>
                                    <li><a href="#" class="bg-3"></a></li>
                                    <li><a href="#" class="bg-4"></a></li>
                                    <li><a href="#" class="bg-5"></a></li>
                                    <li><a href="#" class="bg-6"></a></li>
                                </ul>

                                <div class="form-group videobg-check">
                                    <div class="col-xs-4 control-label">
                                        <div class="onoffswitch greensea small">
                                            <input type="checkbox" name="onoffswitch" class="onoffswitch-checkbox" id="videobg-check">
                                        </div>
                                    </div>
                                </div>

                            </li>
                            <li class="divider"></li>
                            <li>
                                <a href="${pageContext.request.contextPath }/admin/setting/index.action"><i class="fa fa-user"></i>修改密码</a>
                            </li>
                            <li>
                                <a href="${pageContext.request.contextPath }/admin/logout.action"><i class="fa fa-power-off"></i> Logout</a>
                            </li>
                            <li></li>

                        </ul>
                    </li>


                </ul>
                <!-- /Quick Actions -->



                <!-- Sidebar -->
                <ul class="nav navbar-nav side-nav" id="sidebar">

                    <li class="collapsed-content">
                        <ul>
                            <li class="search"><!-- Collapsed search pasting here at 768px --></li>
                        </ul>
                    </li>

                    <li class="navigation" id="navigation">
                        <a href="#" class="sidebar-toggle" data-toggle="#navigation">Navigation <i class="fa fa-angle-up"></i></a>

                        <ul class="menu">

                            <li>
                                <a href="${pageContext.request.contextPath }/admin/index/index.action">
                                    <i class="fa fa-tachometer"></i> 主页
                                    <span class="badge badge-red"></span>
                                </a>
                            </li>
                            <li>
                                <a href="${pageContext.request.contextPath}/admin/ad/index.action">
                                    <i class="fa fa-tint"></i> 广告管理
                                </a>
                            </li>
                            <li class="dropdown open active">
                                <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                                    <i class="fa fa-th-large"></i> 用户管理 <b class="fa fa-plus dropdown-plus"></b>
                                </a>
                                <ul class="dropdown-menu">
                                    <li>
                                        <a href="${pageContext.request.contextPath}/admin/customer/index.action">
                                            <i class="fa fa-caret-right"></i> 用户管理
                                        </a>
                                    </li>
                                    <li class="active">
                                        <a href="${pageContext.request.contextPath}/admin/customer/resumeIndex.action">
                                            <i class="fa fa-caret-right"></i> 简历管理
                                        </a>
                                    </li>
                                </ul>
                            </li>

                            <li class="dropdown">
                                <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                                    <i class="fa fa-th-large"></i> 企业管理 <b class="fa fa-plus dropdown-plus"></b>
                                </a>
                                <ul class="dropdown-menu">
                                    <li>
                                        <a href="${pageContext.request.contextPath }/admin/company/index.action">
                                            <i class="fa fa-caret-right"></i> 企业用户账号
                                        </a>
                                    </li>
                                    <li>
                                        <a href="${pageContext.request.contextPath }/admin/company/verify.action">
                                            <i class="fa fa-caret-right"></i> 企业账号审核
                                        </a>
                                    </li>
                                </ul>
                            </li>

                            <li class="dropdown">
                                <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                                    <i class="fa fa-child"></i> 职位管理 <b class="fa fa-plus dropdown-plus"></b>
                                </a>
                                <ul class="dropdown-menu">
                                    <li>
                                        <a href="${pageContext.request.contextPath }/admin/job/index.action">
                                            <i class="fa fa-caret-right"></i> 职位列表
                                        </a>
                                    </li>
                                </ul>
                            </li>
                        </ul>
                </ul>
                <!-- Sidebar end -->





            </div>
            <!--/.nav-collapse -->





        </div>
        <!-- Fixed navbar end -->






        <!-- Page content -->
        <div id="content" class="col-md-12">









            <!-- page header -->
            <div class="pageheader">
                <h2><i class="fa fa-thumb-tack" style="line-height: 48px;padding-left: 1px;"></i> 简历信息 <span>详细信息</span></h2>
            </div>
            <!-- /page header -->






            <!-- content main container -->

            <div class="main">
                <!--具体功能框架写在这里-->

                <!-- row -->
                <div class="row">

                    <!-- col 12 -->
                    <div class="col-md-12">


                        <!-- tile -->
                        <section class="tile color transparent-black">



                            <!-- tile header -->
                            <div class="tile-header">
                            </div>
                            <!-- /tile header -->

                            <!-- tile body -->
                            <div class="tile-body">
                                <form class="form-horizontal" role="form">
                                    <div style="margin-right: 20%">
                                        <div class="form-group">
                                            <label for="input01" class="col-sm-4 control-label">用户名</label>
                                            <div class="col-sm-8">
                                                <input type="text" class="form-control" id="input01" value="${resume.realname}">
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label for="input02" class="col-sm-4 control-label">姓名</label>
                                            <div class="col-sm-8">
                                                <input type="text" class="form-control" id="input02" readonly value="${resume.customer.fullname}">
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label class="col-sm-4 control-label">性别</label>
                                            <div class="col-sm-8">
                                                <div class="radio radio-transparent">
                                                    <c:choose>
                                                        <c:when test="${resume.sex == 'M'}">
                                                            <input type="radio" name="sex" id="optionsRadios1" value="M" checked>
                                                        </c:when>
                                                        <c:otherwise>
                                                            <input type="radio" name="sex" id="optionsRadios1" value="M">
                                                        </c:otherwise>
                                                    </c:choose>
                                                    <label for="optionsRadios1">先生</label>
                                                </div>
                                                <div class="radio radio-transparent">
                                                    <c:choose>
                                                        <c:when test="${resume.sex == 'F'}">
                                                            <input type="radio" name="sex" id="optionsRadios2" value="F" checked>
                                                        </c:when>
                                                        <c:otherwise>
                                                            <input type="radio" name="sex" id="optionsRadios2" value="F">
                                                        </c:otherwise>
                                                    </c:choose>
                                                    <label for="optionsRadios2">女士</label>
                                                </div>
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label for="input03" class="col-sm-4 control-label">生日</label>
                                            <div class="col-sm-8">
                                                <input type="text" class="form-control" id="input03" value="${resume.birthday_string}">
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label for="input04" class="col-sm-4 control-label">籍贯</label>
                                            <div class="col-sm-4">
                                                <select class="chosen-select chosen-transparent form-control" id="input04" onchange="changeZone('#input04','#input05')">
                                                    <c:forEach items="${zoneList}" var="item">
                                                        <c:choose>
                                                            <c:when test="${item.zone_id == resume.origin_city.zone_id}">
                                                                <option value="${item.zone_id}" selected>${item.name}</option>
                                                            </c:when>
                                                            <c:otherwise>
                                                                <option value="${item.zone_id}">${item.name}</option>
                                                            </c:otherwise>
                                                        </c:choose>
                                                    </c:forEach>
                                                </select>
                                            </div>

                                            <div class="col-sm-4">
                                                <select class="chosen-select chosen-transparent form-control" id="input05">
                                                    <c:forEach items="${origin_cityList}" var="item">
                                                        <c:choose>
                                                            <c:when test="${item.city_id == resume.origin_city_id}">
                                                                <option value="${item.city_id}" selected>${item.name}</option>
                                                            </c:when>
                                                            <c:otherwise>
                                                                <option value="${item.city_id}">${item.name}</option>
                                                            </c:otherwise>
                                                        </c:choose>
                                                    </c:forEach>
                                                </select>
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label for="input06" class="col-sm-4 control-label">现住地</label>
                                            <div class="col-sm-4">
                                                <select class="chosen-select chosen-transparent form-control" id="input06" onchange="changeZone('#input06','#input07')">
                                                    <c:forEach items="${zoneList}" var="item">
                                                        <c:choose>
                                                            <c:when test="${item.zone_id == resume.live_city.zone_id}">
                                                                <option value="${item.zone_id}" selected>${item.name}</option>
                                                            </c:when>
                                                            <c:otherwise>
                                                                <option value="${item.zone_id}">${item.name}</option>
                                                            </c:otherwise>
                                                        </c:choose>
                                                    </c:forEach>
                                                </select>
                                            </div>

                                            <div class="col-sm-4">
                                                <select class="chosen-select chosen-transparent form-control" id="input07">
                                                    <c:forEach items="${live_cityList}" var="item">
                                                        <c:choose>
                                                            <c:when test="${item.city_id == resume.live_city_id}">
                                                                <option value="${item.city_id}" selected>${item.name}</option>
                                                            </c:when>
                                                            <c:otherwise>
                                                                <option value="${item.city_id}">${item.name}</option>
                                                            </c:otherwise>
                                                        </c:choose>
                                                    </c:forEach>
                                                </select>
                                            </div>
                                        </div>


                                        <div class="form-group  transparent-editor">
                                            <label for="input08" class="col-sm-4 control-label">从事行业</label>
                                            <div class="col-sm-8">
                                                <select class="chosen-select chosen-transparent form-control" id="input08">
                                                    <c:forEach items="${industryList}" var="item">
                                                        <c:choose>
                                                            <c:when test="${item.industry_id == resume.industry_id}">
                                                                <option value="${item.industry_id}" selected>${item.industry_name}</option>
                                                            </c:when>
                                                            <c:otherwise>
                                                                <option value="${item.industry_id}">${item.industry_name}</option>
                                                            </c:otherwise>
                                                        </c:choose>
                                                    </c:forEach>
                                                </select>
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label for="input07" class="col-sm-4 control-label">工作年龄</label>
                                            <div class="col-sm-8">
                                                <input type="text" class="form-control" id="input09" value="${resume.work_year}">
                                            </div>
                                        </div>
                                        <div class="form-group  transparent-editor">
                                            <label for="input10" class="col-sm-4 control-label">期望工作类型</label>
                                            <div class="col-sm-8">
                                                <select class="chosen-select chosen-transparent form-control" id="input10">
                                                    <c:forEach items="${jobTypeList}" var="item">
                                                        <c:choose>
                                                            <c:when test="${item.job_type_id == resume.expect_job_type_id}">
                                                                <option value="${item.job_type_id}" selected>${item.job_type_name}</option>
                                                            </c:when>
                                                            <c:otherwise>
                                                                <option value="${item.industry_id}">${item.job_type_name}</option>
                                                            </c:otherwise>
                                                        </c:choose>
                                                    </c:forEach>
                                                </select>
                                            </div>
                                        </div>
                                        <div class="form-group  transparent-editor">
                                            <label for="input11" class="col-sm-4 control-label">期望工作</label>
                                            <div class="col-sm-8">
                                                <input type="text" class="form-control" id="input11" value="${resume.expect_job}">
                                            </div>
                                        </div>

                                        <div class="form-group  transparent-editor">
                                            <label for="input12" class="col-sm-4 control-label">期望工作城市</label>
                                            <div class="col-sm-4">
                                                <select class="chosen-select chosen-transparent form-control" id="input12" onchange="changeZone('#input12','#input13')">
                                                    <c:forEach items="${zoneList}" var="item">
                                                        <c:choose>
                                                            <c:when test="${item.zone_id == resume.expect_city.zone_id}">
                                                                <option value="${item.zone_id}" selected>${item.name}</option>
                                                            </c:when>
                                                            <c:otherwise>
                                                                <option value="${item.zone_id}">${item.name}</option>
                                                            </c:otherwise>
                                                        </c:choose>
                                                    </c:forEach>
                                                </select>
                                            </div>

                                            <div class="col-sm-4">
                                                <select class="chosen-select chosen-transparent form-control" id="input13">
                                                    <c:forEach items="${live_cityList}" var="item">
                                                        <c:choose>
                                                            <c:when test="${item.city_id == resume.expect_city_id}">
                                                                <option value="${item.city_id}" selected>${item.name}</option>
                                                            </c:when>
                                                            <c:otherwise>
                                                                <option value="${item.city_id}">${item.name}</option>
                                                            </c:otherwise>
                                                        </c:choose>
                                                    </c:forEach>
                                                </select>
                                            </div>
                                        </div>

                                        <div class="form-group  transparent-editor">
                                            <label for="input14" class="col-sm-4 control-label">期望工资</label>
                                            <div class="col-sm-8">
                                                <select class="chosen-select chosen-transparent form-control" id="input14">
                                                    <c:forEach items="${salaryTypeList}" var="item">
                                                    <c:choose>
                                                        <c:when test="${item.salary_type_id == resume.salary_type_id}">
                                                            <option value="${item.salary_type_id}" selected>${item.value}</option>
                                                        </c:when>
                                                        <c:otherwise>
                                                            <option value="${item.salary_type_id}">${item.value}</option>
                                                        </c:otherwise>
                                                    </c:choose>
                                                    </c:forEach>
                                                </select>
                                            </div>
                                        </div>

                                        <div class="form-group transparent-editor">
                                            <label for="input15" class="col-sm-4 control-label">自我评价</label>
                                            <div class="col-sm-8">
                                                <input type="text" class="form-control" id="input15">
                                            </div>
                                        </div>

                                        <div class="form-group transparent-editor "  >
                                            <label for="exp11" class="col-sm-4 control-label">工作经验</label>
                                            <div class="col-sm-8 tile-body" id="exp">
                                                <c:if test="${workExpList!=null}">
                                                    <c:forEach items="${workExpList}" var="item" varStatus="status">
                                                        <c:choose>
                                                            <c:when test="${status.count == 1}">
                                                                <input type="text" style="display: none" id="exp10" value="${item.work_exp_id}">
                                                                <input type="text" class="form-control nima input1" id="exp11">
                                                                <input type="text" class="form-control input2" id="exp12" placeholder="开始时间" value="${item.date_start_string}">
                                                                <input type="text" class="form-control input3" id="exp13" style="margin-bottom: 2px" placeholder="结束时间" value="${item.date_end_string}">
                                                            </c:when>
                                                            <c:otherwise>
                                                                <div>
                                                                    <input type="text" style="display: none" id="exp${status.count}0" value="${item.work_exp_id}">
                                                                    <input type="text" class="form-control" id="exp${status.count}1">
                                                                    <input type="text" class="form-control" id="exp${status.count}2" placeholder="开始时间" value="${item.date_start_string}">
                                                                    <input type="text" class="form-control" id="exp${status.count}3" style="margin-bottom: 2px" placeholder="结束时间" value="${item.date_end_string}">
                                                                    <input type="button" class="btn btn-redbrown" onclick=" removeElement(this)" style="float: right;margin: -257px 3px 0 0" value="delete">
                                                                </div>
                                                            </c:otherwise>
                                                        </c:choose>
                                                    </c:forEach>
                                                </c:if>
                                                <c:if test="${workExpList.size()==0}">
                                                    <input type="text" style="display: none" id="exp10">
                                                    <input type="text" class="form-control" id="exp11">
                                                    <input type="text" class="form-control" id="exp12" placeholder="开始时间">
                                                    <input type="text" class="form-control" id="exp13" style="margin-bottom: 2px" placeholder="结束时间">
                                                </c:if>
                                            </div>
                                            <c:choose>
                                                <c:when test="${workExpList.size()==0}">
                                                    <input type="text" style="display: none" id="exp_num" value="1">
                                                </c:when>
                                                <c:otherwise>
                                                    <input type="text" style="display: none" id="exp_num" value="${workExpList.size()}">
                                                </c:otherwise>
                                            </c:choose>
                                            <input type = "button" value="add" class="btn btn-greensea" onclick="exp()" style="float: right;margin-right: 15px">
                                        </div>

                                        <div class="form-group transparent-editor">
                                            <label for="edu11" class="col-sm-4 control-label">教育经历</label>
                                            <div class="col-sm-8" id = "edu">
                                                <c:if test="${educationList!=null}">
                                                    <c:forEach items="${educationList}" var="item" varStatus="status">
                                                        <c:choose>
                                                            <c:when test="${status.count == 1}">
                                                                <input type="text" style="display: none" id="edu10" value="${item.education_id}">
                                                                <input type="text" class="form-control" id="edu11" placeholder="学校名称" value="${item.school}">
                                                                <input type="text" class="form-control" id="edu12" placeholder="开始时间" value="${item.date_start_string}">
                                                                <input type="text" class="form-control" id="edu13" style="margin-bottom: 2px" placeholder="结束时间" value="${item.date_end_string}">
                                                            </c:when>
                                                            <c:otherwise>
                                                                <div>
                                                                    <input type="text" style="display: none" id="edu${status.count}0" value="${item.education_id}">
                                                                    <input type="text" class="form-control" id="edu${status.count}1" placeholder="学校名称" value="${item.school}">
                                                                    <input type="text" class="form-control" id="edu${status.count}2" placeholder="开始时间" value="${item.date_start_string}">
                                                                    <input type="text" class="form-control" id="edu${status.count}3" style="margin-bottom: 2px" placeholder="结束时间" value="${item.date_end_string}">
                                                                    <input type="button" class="btn btn-redbrown" onclick=" removeElement(this)" style="float: right;margin: -111px 3px 0 0" value="delete">
                                                                </div>
                                                            </c:otherwise>
                                                        </c:choose>
                                                    </c:forEach>
                                                </c:if>
                                                <c:if test="${educationList.size()==0}">
                                                    <input type="text" style="display: none" id="edu10">
                                                    <input type="text" class="form-control" id="edu11" placeholder="学校名称">
                                                    <input type="text" class="form-control" id="edu12" placeholder="开始时间">
                                                    <input type="text" class="form-control" id="edu13" style="margin-bottom: 2px" placeholder="结束时间">
                                                </c:if>
                                            </div>
                                            <c:choose>
                                                <c:when test="${educationList.size()==0}">
                                                    <input type="text" style="display: none" id="edu_num" value="1">
                                                </c:when>
                                                <c:otherwise>
                                                    <input type="text" style="display: none" id="edu_num" value="${educationList.size()}">
                                                </c:otherwise>
                                            </c:choose>
                                            <input type = "button" value="add" class="btn btn-greensea" onclick="edu()" style="float: right;margin-right: 15px">
                                        </div>

                                        <div class="form-group transparent-editor">
                                            <label for="comp11" class="col-sm-4 control-label">竞赛经历</label>
                                            <div class="col-sm-8" id = "comp">
                                                <c:if test="${competitionExpList!=null}">
                                                    <c:forEach items="${competitionExpList}" var="item" varStatus="status">
                                                        <c:choose>
                                                            <c:when test="${status.count == 1}">
                                                                <input type="text" style="display: none" id="comp${status.count}0" value="${item.competition_exp_id}">
                                                                <input type="text" class="form-control" id="comp11" placeholder="比赛名称" value="${item.name}">
                                                                <input type="text" class="form-control" id="comp${status.count}2" placeholder="获得奖项" value="${item.obtain}">
                                                                <input type="text" class="form-control" id="comp${status.count}3" style="margin-bottom: 2px" placeholder="获奖时间" value="${item.date_string}">
                                                            </c:when>
                                                            <c:otherwise>
                                                                <div>
                                                                    <input type="text" style="display: none" id="comp${status.count}0" value="${item.competition_exp_id}">
                                                                    <input type="text" class="form-control" id="comp${status.count}1" placeholder="比赛名称" value="${item.name}">
                                                                    <input type="text" class="form-control" id="comp${status.count}2" placeholder="获得奖项" value="${item.obtain}">
                                                                    <input type="text" class="form-control" id="comp${status.count}3" style="margin-bottom: 2px" placeholder="获奖时间" value="${item.date_string}">
                                                                    <input type="button" class="btn btn-redbrown" onclick=" removeElement(this)" style="float: right;margin: -111px 3px 0 0" value="delete">
                                                                </div>
                                                            </c:otherwise>
                                                        </c:choose>
                                                    </c:forEach>
                                                </c:if>
                                                <c:if test="${competitionExpList.size()==0}">
                                                    <input type="text" style="display: none" id="comp10">
                                                    <input type="text" class="form-control" id="comp11" placeholder="比赛名称">
                                                    <input type="text" class="form-control" id="comp12" placeholder="获得奖项">
                                                    <input type="text" class="form-control" id="comp13" style="margin-bottom: 2px" placeholder="获奖时间">
                                                </c:if>
                                            </div>
                                            <c:choose>
                                                <c:when test="${competitionExpList.size()==0}">
                                                    <input type="text" style="display: none" id="comp_num" value="1">
                                                </c:when>
                                                <c:otherwise>
                                                    <input type="text" style="display: none" id="comp_num" value="${competitionExpList.size()}">
                                                </c:otherwise>
                                            </c:choose>
                                            <input type = "button" value="add" class="btn btn-greensea" onclick="comp()" style="float: right;margin-right: 15px">
                                        </div>

                                        <div class="form-group transparent-editor">
                                            <label for="skill11" class="col-sm-4 control-label">技能列表</label>
                                            <div class="col-sm-8" id="skill">
                                                <c:if test="${skillList != null}">

                                                    <c:forEach items="${skillList}" var="item" varStatus="status">
                                                        <c:choose>
                                                            <c:when test="${status.count==1}">
                                                                <input type="text" style="display: none" id="skill10" value="${item.skill_id}">
                                                                <input type="text" class="form-control" id="skill11" style="margin-bottom: 2px" placeholder="技能名称" value="${item.name}">
                                                            </c:when>
                                                            <c:otherwise>
                                                                <div>
                                                                    <input type="text" style="display: none" id="skill${status.count}0" value="${item.skill_id}">
                                                                    <input type="text" style="margin-bottom: 2px" class="form-control" placeholder="技能名称" value="${item.name}" id="skill${status.count}1">
                                                                    <input type="button" class="btn btn-redbrown" onclick="removeElement(this)" style="float: right;margin: -37px 3px 0 0" value="delete">
                                                                </div>
                                                            </c:otherwise>
                                                        </c:choose>
                                                    </c:forEach>
                                                </c:if>
                                                <c:if test="${skillList.size() == 0}">
                                                    <input type="text" style="display: none" id="skill10">
                                                    <input type="text" class="form-control" id="skill11" style="margin-bottom: 2px" placeholder="技能名称">
                                                </c:if>
                                            </div>
                                            <c:choose>
                                                <c:when test="${skillList.size()==0}">
                                                    <input type="text" style="display: none" id="skill_num" value="1">
                                                </c:when>
                                                <c:otherwise>
                                                    <input type="text" style="display: none" id="skill_num" value="${skillList.size()}">
                                                </c:otherwise>
                                            </c:choose>
                                            <input type = "button" value="add" class="btn btn-greensea " onclick="skill()" style="float: right;margin-right: 15px">
                                        </div>

                                        <div class="form-group">
                                            <label class="col-sm-4 control-label">附件简历</label>
                                            <div class="col-sm-8">
                                                <div class="input-group">
                                                <span class="input-group-btn">
                                                    <span class="btn btn-primary btn-file">
                                                      <i class="fa fa-upload"></i><input type="file" id="input20" name="input20" multiple="">
                                                    </span>
                                                </span>
                                                    <input type="text" class="form-control" readonly="" placeholder="支持doc、docx、pdf" value="${resume.attachment}">
                                                </div>
                                            </div>
                                        </div>

                                    </div>


                                    <!--</section>-->

                                    <div class="form-group form-footer footer-white">
                                        <div class="col-sm-12" style="text-align: center">
                                            <a class="btn btn-primary" href="javascript:save()">提交</a>
                                            <button type="reset" class="btn btn-red">重置</button>
                                            <button type="button" class="btn btn-hotpink"><a href="${pageContext.request.contextPath}/admin/customer/resumeIndex.action" style="color: white">返回</a></button>
                                        </div>
                                    </div>

                                </form>

                            </div>
                            <!-- /tile body -->



                        </section>
                        <!-- /tile -->



                    </div>
                    <!-- /col 6 -->



                </div>
                <!-- /row -->

            </div>
            <!-- /content container -->

        </div>
        <!-- Page content end -->


    </div>
    <!-- Make page fluid-->




</div>
<!-- Wrap all page content end -->



<section class="videocontent" id="video"></section>

<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="${pageContext.request.contextPath}/static/admin/assets/js/jquery.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="${pageContext.request.contextPath}/static/admin/assets/js/vendor/bootstrap/bootstrap.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/static/admin/assets/js/vendor/mmenu/js/jquery.mmenu.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/static/admin/assets/js/vendor/sparkline/jquery.sparkline.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/static/admin/assets/js/vendor/nicescroll/jquery.nicescroll.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/static/admin/assets/js/vendor/animate-numbers/jquery.animateNumbers.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/static/admin/assets/js/vendor/videobackground/jquery.videobackground.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/static/admin/assets/js/vendor/blockui/jquery.blockUI.js"></script>

<script src="${pageContext.request.contextPath}/static/admin/assets/js/vendor/momentjs/moment-with-langs.min.js"></script>
<%--<script src="${pageContext.request.contextPath}/static/admin/assets/js/vendor/datepicker/bootstrap-datetimepicker.min.js"></script>--%>
<script src="${pageContext.request.contextPath}/static/admin/assets/js/vendor/colorpicker/bootstrap-colorpicker.min.js"></script>
<script src="${pageContext.request.contextPath}/static/admin/js/bootstrap-datetimepicker.js"></script>
<script src="${pageContext.request.contextPath}/static/admin/js/bootstrap-datetimepicker.zh-CN.js"></script>
<script src="${pageContext.request.contextPath}/static/admin/assets/js/vendor/colorpalette/bootstrap-colorpalette.js"></script>
<script src="${pageContext.request.contextPath}/static/admin/assets/js/vendor/rickshaw/raphael-min.js"></script>
<script src="${pageContext.request.contextPath}/static/admin/assets/js/vendor/rickshaw/d3.v2.js"></script>
<script src="${pageContext.request.contextPath}/static/admin/assets/js/vendor/rickshaw/rickshaw.min.js"></script>
<script src="${pageContext.request.contextPath}/static/admin/assets/js/vendor/morris/morris.min.js"></script>
<script src="${pageContext.request.contextPath}/static/admin/assets/js/vendor/tabdrop/bootstrap-tabdrop.min.js"></script>
<script src="${pageContext.request.contextPath}/static/admin/assets/js/vendor/summernote/summernote.min.js"></script>
<script src="${pageContext.request.contextPath}/static/admin/assets/js/vendor/chosen/chosen.jquery.min.js"></script>

<script src="${pageContext.request.contextPath}/static/admin/assets/js/minimal.min.js"></script>
<script src="${pageContext.request.contextPath}/static/admin/js/page.js"></script>
<script src="${pageContext.request.contextPath}/static/admin/js/sweetalert.min.js"></script>
<script src="${pageContext.request.contextPath}/static/admin/js/ajaxupload.js"></script>


<script>

    function exp() {
        var len = $('#exp_num').val();
        var num = parseInt(len)+1;
        var str1 = "exp"+num;
        var string = $('#exp').html();
        var values=[];
        for(var i= len; i >= 1; i--){
            var arr = [];
            arr[0] = $('#exp' + i + 0).val();
            arr[1] = $('#exp' + i + 1).val();
            arr[2] = $('#exp' + i + 2).val();
            arr[3] = $('#exp' + i + 3).val();
            values[i] = arr;
        }
        string+='<div>' +
                '<input type="text" style="display: none" id="'+str1+0+'">'+
                '<input type="text" class="form-control" id="' + str1+1 + '">'+
                '<input type="text" class="form-control"  placeholder="开始时间" id="' + str1+2 + '">'+
                '<input type="text" class="form-control"  style="margin-bottom: 2px" placeholder="结束时间" id="' + str1+3 + '">' +
                '<input type="button" class="btn btn-redbrown" onclick=" removeElement(this)" style="float: right;margin: -257px 3px 0 0" value="delete">' +
                '</div>';


        $('#exp').html(string);
        for(var i= len; i >= 1; i--){
            $('#exp' + i + 0).val(values[i][0]);
            $('#exp' + i + 1).val(values[i][1]);
            $('#exp' + i + 2).val(values[i][2]);
            $('#exp' + i + 3).val(values[i][3]);
            date_picker('exp' + i + 2);
            date_picker('exp' + i + 3);
        }

        $('#exp_num').val(num);
        summer_note(str1+1);
        date_picker(str1+2);
        date_picker(str1+3);
        console.log(num);
    }
    function removeElement(_element) {
        var _parentElement = _element.parentNode;
        var childs = _parentElement.childNodes;
        for(var i = childs.length - 1; i >= 0; i--) {
            _parentElement.removeChild(childs[i]);
        }
        _parentElement.parentNode.removeChild(_parentElement);
    }

    function edu() {
        var len = $('#edu_num').val();
        var num = parseInt(len)+1;
        var str1 = "edu" + num;
        var string = $('#edu').html();
        var values=[];
        for(var i= len; i >= 1; i--){
            var arr = [];
            arr[0] = $('#edu' + i + 0).val();
            arr[1] = $('#edu' + i + 1).val();
            arr[2] = $('#edu' + i + 2).val();
            arr[3] = $('#edu' + i + 3).val();
            values[i] = arr;
        }
        string+='<div>' +
                '<input type="text" style="display : none" id="'+str1+0+'">'+
                '<input type="text" class="form-control" placeholder="学校名称" id="' + str1+1 + '">' +
                '<input type="text" class="form-control"  placeholder="开始时间" id="' + str1+2 + '">'+
                '<input type="text" class="form-control" style="margin-bottom: 2px"  placeholder="结束时间" id="' + str1+3 + '">'+
                '<input type="button" class="btn btn-redbrown" onclick=" removeElement(this)" style="float: right;margin: -111px 3px 0 0" value="delete">' +
                '</div>';
        $('#edu').html(string);

        for(var i= len; i >= 1; i--){
            $('#edu' + i + 0).val(values[i][0]);
            $('#edu' + i + 1).val(values[i][1]);
            $('#edu' + i + 2).val(values[i][2]);
            $('#edu' + i + 3).val(values[i][3]);
            date_picker('edu' + i + 2);
            date_picker('edu' + i + 3);

        }
        $('#edu_num').val(num);
        date_picker(str1+2);
        date_picker(str1+3);
    }

    function comp() {
        var len = $('#comp_num').val();
        var num = parseInt(len)+1;
        var str1 = "comp" + num;
        console.log(num);

        var string = $('#comp').html();
        var values=[];
        for(var i= len; i >= 1; i--){
            var arr = [];
            arr[0] = $('#comp' + i + 0).val();
            arr[1] = $('#comp' + i + 1).val();
            arr[2] = $('#comp' + i + 2).val();
            arr[3] = $('#comp' + i + 3).val();
            values[i] = arr;
        }

        string+='<div>' +
                '<input type="text" style="display: none" id="'+ str1+0+ '">' +
                '<input type="text" class="form-control" placeholder="比赛名称" id="' + str1+1 + '">' +
                '<input type="text" class="form-control"  placeholder="获得奖项" id="' + str1+2 + '">'+
                '<input type="text" class="form-control" style="margin-bottom: 2px"  placeholder="获奖时间" id="' + str1+3 + '">'+
                '<input type="button" class="btn btn-redbrown" onclick=" removeElement(this)" style="float: right;margin: -111px 3px 0 0" value="delete">' +
                '</div>';

        $('#comp').html(string);
        for(var i= len; i >= 1; i--){
            $('#comp' + i + 0).val(values[i][0]);
            $('#comp' + i + 1).val(values[i][1]);
            $('#comp' + i + 2).val(values[i][2]);
            $('#comp' + i + 3).val(values[i][3]);
            date_picker('comp' + i + 3);
        }
        date_picker(str1+3);
        $('#comp_num').val(num);
    }

    function skill() {
        var len = $('#skill_num').val();
        var num = parseInt(len)+1;
        var str1 = "skill" + num;
        var string = $('#skill').html();
        var values = [];

        console.log(len);
        console.log(num);
        for(var i= len; i >= 1; i--){
            var arr = [];
            arr[0] = $('#skill' + i + 0).val();
            arr[1] = $('#skill' + i + 1).val();
            values[i] = arr;
        }

        string+= '<div>' +
                '<input type="text" style="display: none" id="'+str1+0+'">'+
                '<input type="text" style="margin-bottom: 2px" class="form-control" placeholder="技能名称" id="' + str1 +1 + '">' +
                '<input type="button" class="btn btn-redbrown" onclick=" removeElement(this)" style="float: right;margin: -37px 3px 0 0" value="delete">' +
                '</div>';

        $('#skill').html(string);
        for(var i= len; i >= 1; i--){
            $('#skill' + i + 1).val(values[i][1]);
            $('#skill' + i + 0).val(values[i][0]);
        }

        $('#skill_num').val(num);
    }

    function date_picker(id) {
        $('#'+id).datetimepicker({
            fontAwesome:1,
            format:"yyyy-mm-dd",
            weekStart: 1,
            todayBtn:  1,
            autoclose: 1,
            todayHighlight: 1,
            startView: 2,
            forceParse: 0,
            showMeridian: 0,
            minView:"month"
        });

        $("#"+id).on("dp.show",function (e) {
            var newtop = $('.bootstrap-datetimepicker-widget').position().top - 45;
            $('.bootstrap-datetimepicker-widget').css('top', newtop + 'px');
        });
    }

    function summer_note(id) {
        $('#'+id).summernote({
            toolbar: [
                //['style', ['style']], // no style button
//                ['style', ['bold', 'italic', 'underline', 'clear']],
//                ['fontsize', ['fontsize']],
//                ['color', ['color']],
//                ['para', ['ul', 'ol', 'paragraph']],
                ['height', ['height']],
                //['insert', ['picture', 'link']], // no insert buttons
                //['table', ['table']], // no table button
                //['help', ['help']] //no help button
            ],
            height: 137   //set editable area's height
        });
    }

    //initialize file upload button function
    $(document)
            .on('change', '.btn-file :file', function() {
                var input = $(this),
                        numFiles = input.get(0).files ? input.get(0).files.length : 1,
                        label = input.val().replace(/\\/g, '/').replace(/.*\//, '');
                input.trigger('fileselect', [numFiles, label]);
            });


    $(function(){

        date_picker('input03');
        date_picker('comp13');
        <c:if test="${competitionExpList.size()!=0}">
            <c:forEach items="${competitionExpList}" var="item" varStatus="status">
                date_picker('comp'+'${status.count}'+3);
            </c:forEach>
        </c:if>

        date_picker('edu12');
        date_picker('edu13');
        <c:if test="${educationList.size()!=0}">
            <c:forEach items="${educationList}" var="item" varStatus="status">
                date_picker('edu'+'${status.count}'+2);
                date_picker('edu'+'${status.count}'+3);
            </c:forEach>
        </c:if>

        date_picker('exp12');
        date_picker('exp13');
        summer_note('exp11');
        <c:if test="${workExpList.size()!=0}">
            <c:forEach items="${workExpList}" var="item" varStatus="status">
                summer_note('exp'+'${status.count}'+1);
                date_picker('exp'+'${status.count}'+2);
                date_picker('exp'+'${status.count}'+3);
                $('#exp'+'${status.count}'+1).code('${item.text}');
            </c:forEach>
        </c:if>

        summer_note('input15');
        $('#input15').code('${resume.comment}');


        //chosen select input
        $(".chosen-select").chosen({disable_search_threshold: 10});

        //initialize datepicker

        //initialize colorpicker
        $('#colorpicker').colorpicker();

        $('#colorpicker').colorpicker().on('showPicker', function(e){
            var newtop = $('.dropdown-menu.colorpicker.colorpicker-visible').position().top - 45;
            $('.dropdown-menu.colorpicker.colorpicker-visible').css('top', newtop + 'px');
        });

        //initialize colorpicker RGB
        $('#colorpicker-rgb').colorpicker({
            format: 'rgb'
        });

        $('#colorpicker-rgb').colorpicker().on('showPicker', function(e){
            var newtop = $('.dropdown-menu.colorpicker.colorpicker-visible').position().top - 45;
            $('.dropdown-menu.colorpicker.colorpicker-visible').css('top', newtop + 'px');
        });

        //initialize file upload button
        $('.btn-file :file').on('fileselect', function(event, numFiles, label) {

            var input = $(this).parents('.input-group').find(':text'),
                    log = numFiles > 1 ? numFiles + ' files selected' : label;

            console.log(log);

            if( input.length ) {
                input.val(log);
            } else {
                if( log ) alert(log);
            }

        });


        // Initialize colorpalette
        $('#event-colorpalette').colorPalette({
            colors:[['#428bca', '#5cb85c', '#5bc0de', '#f0ad4e' ,'#d9534f', '#ff4a43', '#22beef', '#a2d200', '#ffc100', '#cd97eb', '#16a085', '#FF0066', '#A40778', '#1693A5']]
        }).on('selectColor', function(e) {
            var data = $(this).data();

            $(data.returnColor).val(e.color);
            $(this).parents(".input-group").css("border-bottom-color", e.color );
        });


    })

</script>

<script>
    function changeZone(id1,id2){
        var zone_id = $(id1).val();
        $.ajax({
            type:'post',
            url:'${pageContext.request.contextPath}/admin/customer/getCityList.action',
            data:'zone_id='+zone_id,
            success:function(data){
                var string="";
                for(var i in data){
                    string +='<option value="'+data[i].city_id+'">'+data[i].name+'</option>';
                }
                $(id2).html(string);
                $(id2).trigger("chosen:updated");
            }

        });
    }

    var count=0;
    //finish
    function save_resume() {
        var realname = $('#input01').val();
        var sex = $('input:radio[name=sex]:checked').val();
        var birthday_string = $('#input03').val();
        var origin_city_id = $('#input05').val();
        var live_city_id = $('#input07').val();
        var industry_id = $('#input08').val();
        var work_year = $('#input09').val();
        var expect_job_type_id = $('#input10').val();
        var expect_job = $('#input11').val();
        var expect_city_id = $('#input13').val();
        var salary_type_id = $('#input14').val();
        var comment = $('#input15').code();
        console.log(comment);
        if(realname == "" || birthday_string == "" || sex == "" || origin_city_id == "" || live_city_id == ""
                || industry_id=="" || expect_job_type_id=="" || expect_job=="" || expect_city_id=="" || salary_type_id==""){
            swal("","请填写完整用户信息！","error");
            return;
        }
        $.ajaxFileUpload({
            url : '${pageContext.request.contextPath}/admin/customer/saveResume.action', //用于文件上传的服务器端请求地址
            secureuri : false, //一般设置为false
            fileElementId : 'input20', //文件上传空间的id属性  <input type="file" id="file" name="file" />
            type : 'post',
            dataType : 'json', //返回值类型 一般设置为json
            data:{
                resume_id:  ${resume.resume_id},
                realname:realname,
                sex:sex,
                birthday_string:birthday_string,
                origin_city_id:origin_city_id,
                live_city_id:live_city_id,
                industry_id:industry_id,
                work_year:work_year,
                expect_job_type_id:expect_job_type_id,
                expect_job:expect_job,
                expect_city_id:expect_city_id,
                salary_type_id:salary_type_id,
                comment:comment
            },
            success : function(data, status) //服务器成功响应处理函数
            {
                console.log(data);
                if(data == -1){
                    swal("","请填写完整用户信息！","error");
                }
                if(data == 1){
                    count++;
                    console.log(count);
                    if (count ==5) {
                        swal("","保存成功！","success");
                    }
                }else{
                    swal("","服务器出错！","error");
                }
                // alert(data.msg);
            },
            error : function(data, status, e)//服务器响应失败处理函数
            {
                swal("","服务器出错！","error");
                // alert(data.msg);
            }
        });
        return false;
    }

    //finish
    function save_skill() {
        var length = $('#skill_num').val();
        console.log(length);
        var values = [];
        for (var i = length;i>=1;i--) {
            var arr = [];
            arr[1] = $('#skill'+i+1).val();
            arr[0] = $('#skill'+i+0).val();
            values[i] = arr;
        }
        console.log(values);
        var data = {"resume_id":${resume.resume_id},"arr":values};
        $.ajax({
            type:'post',
            url:'${pageContext.request.contextPath}/admin/customer/saveSkill.action',
            contentType:'application/json;charset=utf-8',
            data:JSON.stringify(data),
            success:function(data){
                if(data == -1){
                    swal("","请填写完整用户信息！","error");
                }
                if(data == 1){
                    count++;
                    console.log(count);
                    if (count ==5) {
                        swal("","保存成功！","success");
                    }
                }else{
                    swal("","服务器出错！","error");
                }
            }
        });
    }

    //finish
    function save_work_exp() {
        var length = $('#exp_num').val();
        var values=[];

        for (var i = length;i>=1;i--) {
            var arr = [];
            arr[0] = $('#exp' + i + 0).val();
            arr[1] = $('#exp' + i + 1).code();
            arr[2] = $('#exp' + i + 2).val();
            arr[3] = $('#exp' + i + 3).val();
            values[i] = arr;
        }

        console.log(values);

        var data = {"resume_id":${resume.resume_id},"arr":values};
        $.ajax({
            type:'post',
            url:'${pageContext.request.contextPath}/admin/customer/saveWorkExp.action',
            contentType:'application/json;charset=utf-8',
            data:JSON.stringify(data),
            success:function(data){
                if(data == -1){
                    swal("","请填写完整用户信息！","error");
                }
                if(data == 1){
                    count++;
                    console.log(count);
                    if (count ==5) {
                        swal("","保存成功！","success");
                    }
                }else{
                    swal("","服务器出错！","error");
                }
            }
        });
    }

    //finish
    function save_edu() {
        var length = $('#edu_num').val();
        var values=[];
        for(var i= length; i >= 1; i--){
            var arr = [];
            arr[0] = $('#edu' + i + 0).val();
            arr[1] = $('#edu' + i + 1).val();
            arr[2] = $('#edu' + i + 2).val();
            arr[3] = $('#edu' + i + 3).val();
            values[i] = arr;
        }
        console.log(values);
        var data = {"resume_id":${resume.resume_id},"arr":values};
        $.ajax({
            type:'post',
            url:'${pageContext.request.contextPath}/admin/customer/saveEdu.action',
            contentType:'application/json;charset=utf-8',
            data:JSON.stringify(data),
            success:function(data){
                if(data == -1){
                    swal("","请填写完整用户信息！","error");
                }
                if(data == 1){
                    count++;
                    console.log(count);
                    if (count ==5) {
                        swal("","保存成功！","success");
                    }
                }else{
                    swal("","服务器出错！","error");
                }
            }
        });
    }

    //finish
    function save_com_exp() {
        var length = $('#comp_num').val();
        console.log(length);
        var values=[];
        for(var i= length; i >= 1; i--){
            var arr = [];
            arr[0] = $('#comp' + i + 0).val();
            arr[1] = $('#comp' + i + 1).val();
            arr[2] = $('#comp' + i + 2).val();
            arr[3] = $('#comp' + i + 3).val();
            values[i] = arr;
        }
        console.log(values);
        var data = {"resume_id":${resume.resume_id},"arr":values};
        $.ajax({
            type:'post',
            url:'${pageContext.request.contextPath}/admin/customer/saveComExp.action',
            contentType:'application/json;charset=utf-8',
            data:JSON.stringify(data),
            success:function(data){
                if(data == -1){
                    swal("","请填写完整用户信息！","error");
                }
                if(data == 1){
                    count++;
                    console.log(count);
                    if (count ==5) {
                        swal("","保存成功！","success");
                    }
                }else{
                    swal("","服务器出错！","error");
                }
            }
        });
    }

    function save() {
        save_resume();
        save_work_exp();
        save_edu();
        save_com_exp();
        save_skill();
    }

</script>

</body>
</html>


